//
//  MyBankCardViewController.m
//  UcarTest
//
//  Created by 陈曦 on 16/3/16.
//  Copyright © 2016年 chenxi. All rights reserved.
//

#import "MyBankCardViewController.h"
#import "Define.h"

@interface MyBankCardViewController ()

@end

@implementation MyBankCardViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    //导航条
    self.navigationController.navigationBarHidden = NO;
    UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 44)];
    titleLabel.backgroundColor = [UIColor clearColor];
    titleLabel.textColor = [UIColor whiteColor];
    titleLabel.font = [UIFont boldSystemFontOfSize:18];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    titleLabel.text = @"我的银行卡";
    self.navigationItem.titleView = titleLabel;
    self.navigationController.navigationBar.barTintColor = mainColor;
    self.view.backgroundColor = backgroundMainColor;
    
    
    
    //重定义返回键
    UIButton *back = [UIButton buttonWithType:UIButtonTypeCustom];
    back.frame = CGRectMake(0, 0, 22, 22);
    [back setImage:[UIImage imageNamed:@"iconfont-fanhui-white"] forState:UIControlStateNormal];
    [back addTarget:self action:@selector(backTpMainView) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem *backBar = [[UIBarButtonItem alloc] initWithCustomView:back];
    self.navigationItem.leftBarButtonItem = backBar;
}

//返回上一页
- (void)backTpMainView{
    
    [self.navigationController popViewControllerAnimated:nil];
    
}

@end
